function VehicleOtherView() {
	var data = [];
	
	// Fuel consumption section
	var vehicleSection = Ti.UI.createTableViewSection({
		headerTitle:'Vehicle'
	});
	
	data.push(vehicleSection);
	
	var vehicleEditRow = Ti.UI.createTableViewRow({height:50});
	var vehicleEditLabel = Ti.UI.createLabel({
		text:'edit vehicle details',
		font:{fontSize:16,fontWeight:'bold', fontFamily:'Arial'},
		height:'auto',
		width:'auto',
		left:10
	});
	var vehicleEditButton = Ti.UI.createButton({
		style:Titanium.UI.iPhone.SystemButton.DISCLOSURE,
		right:10
	});
	vehicleEditRow.add(vehicleEditLabel);
	vehicleEditRow.add(vehicleEditButton);
	data.push(vehicleEditRow);
	
	var vehicleResetRow = Ti.UI.createTableViewRow({height:50});
	var vehicleResetLabel = Ti.UI.createLabel({
		text:'reset fill-up stats',
		color:'red',
		font:{fontSize:16,fontWeight:'bold', fontFamily:'Arial'},
		height:'auto',
		width:'auto',
		left:10
	});
	vehicleResetRow.add(vehicleResetLabel);
	data.push(vehicleResetRow);
	
	var vehicleDeleteRow = Ti.UI.createTableViewRow({height:50});
	var vehicleDeleteLabel = Ti.UI.createLabel({
		text:'delete vehicle',
		font:{fontSize:16,fontWeight:'bold', fontFamily:'Arial'},
		color:'red',
		height:'auto',
		width:'auto',
		left:10
	});
	vehicleDeleteRow.add(vehicleDeleteLabel);
	data.push(vehicleDeleteRow);
	
	var tableview = Titanium.UI.createTableView({
		data:data,
		style: Titanium.UI.iPhone.TableViewStyle.GROUPED
	});
	
	// Event listeners
	// Add event listeners
	tableview.addEventListener('updateVehicleOtherEvent', function(e) {
		currentVehicleId = e.vehicleId;
	});
	
	vehicleEditRow.addEventListener('click', function(e) {
		if(currentVehicleId) {
			tableview.fireEvent('wantToEditVehicle', {
				vehicleId: currentVehicleId
			});
		}
	});
	
	vehicleDeleteRow.addEventListener('click', function(e) {
		if(currentVehicleId) {
			tableview.fireEvent('wantToDeleteVehicle', {
				vehicleId: currentVehicleId
			});
		}
	});
	
	vehicleResetRow.addEventListener('click', function(e) {
		if(currentVehicleId) {
			tableview.fireEvent('wantToResetVehicleFillups', {
				vehicleId: currentVehicleId
			});
		}
	});
	return tableview;
}

var currentVehicleId = null;

module.exports = VehicleOtherView;